package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户管理-话费管理_明细
 * </p>
 *
 * @author 白强
 * @since 2022-05-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_minutes_detail")
@ApiModel(value="CrmCallMinutesDetail对象", description="客户管理-话费管理_明细")
public class CrmCallMinutesDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "话费管理ID")
    @TableField("crm_call_minutes_id")
    private Integer crmCallMinutesId;

    @ApiModelProperty(value = "年份")
    @TableField("year")
    private Integer year;

    @ApiModelProperty(value = "月份")
    @TableField("month")
    private Integer month;

    @ApiModelProperty(value = "商品ID")
    @TableField("crm_goods_id")
    private Integer crmGoodsId;

    @ApiModelProperty(value = "商品名称")
    @TableField("crm_goods_name")
    private String crmGoodsName;

    @ApiModelProperty(value = "是否套餐")
    @TableField("is_setting")
    private Boolean isSetting;

    @ApiModelProperty(value = "分钟数单价(元/分钟)")
    @TableField("minute_price")
    private BigDecimal minutePrice;

    @ApiModelProperty(value = "分钟数")
    @TableField("base_minutes")
    private Integer baseMinutes;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "购买次数")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "分钟数合计")
    @TableField("total_minutes")
    private Integer totalMinutes;

    @ApiModelProperty(value = "金额合计")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "续费方式 1：手动 2：自动")
    @TableField("renewal_type")
    private Integer renewalType;

    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;


}
